package cn.xorange.commons.system.entity.platform;

import cn.xorange.commons.data.annotation.MColumn;
import cn.xorange.commons.data.constants.KeyType;
import cn.xorange.commons.data.constants.QueryType;
import cn.xorange.commons.data.core.entity.DataEntity;
import cn.xorange.commons.utils.validate.MValidate;
import lombok.Data;

/**
 * @author : yangjian
 * date : 2024/6/24
 * description :
 */
@Data
public class SysTenant extends DataEntity {
    /**
     * 关联表
     * SysTenantMenu
     * SysTenantModule
     * SysTenantApply
     * SysTenantPay  支付（功能未完成）
     * SysTenantBill 支付流水(功能未完成)
     * SysRole
     * SysOrg
     */
    @MColumn(name = "租户Id",key = KeyType.AUTO)
    private Long tenantId;
    @MColumn(queryType = QueryType.LIKE)
    @MValidate(repeatSearch = "tenantName",min = 2,max = 30)
    private String tenantName;
    @MColumn(remark = "租户类型: 2个人商户,3企业商户 ")
    private String tenantType;
    @MColumn(remark = "所属人ID")
    private Long owner;
    private String ownerName;
    @MColumn()
    private String phone;
    @MColumn(canNull = true)
    private String address;
    @MColumn()
    private String logo;
    @MColumn(remark = "初始密码")
    private String initPwd;
    @MColumn(remark = "营业执照")
    private String businessLicence;
    @MColumn()
    private String status;
}
